package cn.cjx.pet.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import cn.cjx.basic.domain.BaseDomain;
import cn.cjx.org.domain.Shop;
import cn.cjx.system.domain.Menu;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

/**
 * <p>
 *
 * </p>
 *
 * @author cjx
 * @since 2022-05-17
 */
@Data
public class Pet extends BaseDomain{

    private static final long serialVersionUID = 1L;

    private String name;
    private BigDecimal saleprice;
    private String costprice;
    private String resources;
    /**
     * 状态：0下架，1上架
     */
    private Integer state = 0;
    /**
     * 类型id
     */
    private Long typeId;
    @JsonFormat(pattern = "yyyy-MM-dd ", timezone = "GMT+8")
    private Date offsaletime = new Date();
    @JsonFormat(pattern = "yyyy-MM-dd ", timezone = "GMT+8")
    private Date onsaletime = new Date();
    @JsonFormat(pattern = "yyyy-MM-dd ", timezone = "GMT+8")
    private Date createtime = new Date();
    /**
     * 店铺Id 如果被领养店铺id为null
     */
    private Long shopId;
    /**
     * 如果被领养为领养用户id
     */
    private Long userId;
    private Long searchMasterMsgId;

    private PetDetail petDetail;
    private Shop shop;
    private PetType petType;



}
